package com.mall.common.util;

import org.apache.log4j.Logger;


public class HessianException extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6533907926341095657L;
	private Logger log = Logger.getLogger("Hessian");
	private String prompt;

	public String getPrompt() {
		return prompt;
	}

	public void setPrompt(String prompt) {
		this.prompt = prompt;
	}

	public HessianException(){
		super();
		log.error("Hessian");
	}
	
	public HessianException(String message, String prompt){
		super(message);
		this.prompt = prompt;
		log.error(message + " and the prompt is " + prompt);
	}
	
	public HessianException(String message){
		super(message);
		this.prompt = message;
		log.error(message);
	}
	
    public HessianException(String message, Throwable cause) {
        super(message, cause);
        this.prompt = message;
        log.error(message, cause);
    }
    
    public HessianException(Throwable cause) {
        super(cause);      
        log.error(cause.getCause().getMessage());
        cause.getStackTrace();
    }

}
